package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Sinchoice;
import tech.aistar.entity.Wrongtopic;
import tech.aistar.mapper.WrongtopicMapper;
import tech.aistar.service.IWrongtopicService;

import java.util.List;

@Service
public class WrongtopicServiceImpl implements IWrongtopicService {

    @Autowired
    private WrongtopicMapper wrongtopicMapper;


    @Override
    public List<Wrongtopic> findAll() {
        return wrongtopicMapper.findAll();
    }

    @Override
    public List<Wrongtopic> findByParperId(Long id) {
        return wrongtopicMapper.findByParperId(id);
    }

    @Override
    public int insertWrongtopic(Wrongtopic wrongtopic) {
        return wrongtopicMapper.insertWrongtopic(wrongtopic);
    }
}
